package com.xaicode.template.batch.job.normal;

import org.springframework.batch.core.step.tasklet.Tasklet;
import org.springframework.batch.repeat.RepeatStatus;

/**
 * @author beborn
 * @date 2021/12/30 0030 17:31
 */
public class JobHelper {

    public static Tasklet tasklet(String content, RepeatStatus status) {
        return (contribution, chunkContext) -> {
            System.out.println(content);
            return status;
        };
    }

}
